package com.cn.longdistancebusstation.model;

import com.google.gson.annotations.SerializedName;

/**
 * Created by mal on 2018/1/21.
 */

public class Result<T>{

    private Head head;
    private T body;

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    public Head getHead() {
        return head;
    }

    public void setHead(Head head) {
        this.head = head;
    }


    //
    public class  Head extends Object {
        private String msg;
        @SerializedName("success")
        private Boolean isSuccess;

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public Boolean getSuccess() {
            return isSuccess;
        }

        public void setSuccess(Boolean success) {
            isSuccess = success;
        }
    }
}
